import 'package:flutter/material.dart';

/// 点击事件
class OnClickApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primarySwatch: Colors.red),
      home: Scaffold(
          appBar: AppBar(
            title: Text('Raise Button'),
          ),
          body: Column(
            children: <Widget>[
              RaisedButton(
                onPressed: () {
                  print('Raise Button onClick');
                },
                child: Text("Raise 点击"),
              ),
              GestureDetector(
                child: Text('Gesture 点击'),
                onTap: () {
                  print('Gesture Button onTap');
                },
              )
            ],
          )),
    );
  }
}
